import request from '@/utils/request'

export function listData(params) {
  return request({
    url: '/data/user/listData',
    method: 'get',
    params
  })
}

export function getCount() {
  return request({
    url: '/data/user/count',
    method: 'get'
  })
}

export function remove(id) {
  return request({
    url: '/data/user' + id,
    method: 'delete'
  })
}

export function createData(data) {
  return request({
    url: '/data/user',
    method: 'post',
    data
  })
}

export function updateData(data) {
  return request({
    url: '/data/user',
    method: 'put',
    data
  })
}
